package com.ruoyi.web.wx.controller;

import com.ruoyi.aboutas.domain.AboutUs;
import com.ruoyi.aboutas.service.IAboutUsService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "关于我们")
@RestController
@RequestMapping("/wx/aboutUs")
public class WxAboutUsController {
    @Autowired
    private IAboutUsService aboutUsService;

    /**
     * 查询【请填写功能名称】列表
     */
    @ApiOperation("查询所有关于我们列表")
    @GetMapping("/list")
    public AjaxResult list(AboutUs aboutUs)
    {
        List<AboutUs> aboutUses = aboutUsService.selectAboutUsList(aboutUs);
        return AjaxResult.success(aboutUses.get(0));
    }

}
